<html >

<head>
<title>REGISTER</title>
<meta charset='utf-8'/>
<link rel="stylesheet" href="myweb.css" type="text/css" />

</head>

<body >


<script lang="javascript">

function showHint(str)

{

var xmlhttp1;

if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp1=new XMLHttpRequest();
  }

else
  {// code for IE6, IE5
  xmlhttp1=new ActiveXObject("Microsoft.XMLHTTP");
  }

xmlhttp1.onreadystatechange=function()
 
 {
  
if (xmlhttp1.readyState==4 && xmlhttp1.status==200)
    {
    document.getElementById("status").innerHTML=xmlhttp1.responseText;
    //myform.id.value=xmlhttp1.responseText.length;
    if(xmlhttp1.responseText.length==63)
    {
        myform.guidangky.disabled=false;
    }
    else myform.guidangky.disabled=true;
    }
  }

xmlhttp1.open("GET","check user.php?id="+str,true);

xmlhttp1.send();

}





</script>


<form action="checkregister.php" method="POST" name='myform'>

ID:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <input type='text' name="id" onkeyup="showHint(this.value)" />
<span id="status"></span>
<br />
Password:&nbsp; &nbsp; &nbsp;&nbsp; <input type='password' name="pass"/><br />

Re-Password: <input type='password' name="repass"/><br />

<input type='submit' value='Gui dang ky' disabled='' name='guidangky'/>



</form>

</body>
</html>